<?php
/**
 * Created by PhpStorm.
 * User: ZZF
 * Date: 2017/3/16
 * Time: 11:36
 */

namespace app\admin\model;
use think\Model;
use think\Verify;
class StoreSeatModel extends Model{
	protected $validate = [
         'rule' => [
			'store_id' => 'require',
			'seat_num' => "require|unique:store_seat|length:1,32"
		 ],
         'msg'  => [
			'store_id.require' => "请选择所属门店！",
			'seat_num.require' => "座位编号必须填写！",
			'seat_num.unique' => "座位编号已存在！",
			'seat_num.length' => "座位编号长度不少于1个字符！"
		 ]
    ];
	
}
